package com.tenghu.sbm.cus.entity;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import org.apache.ibatis.type.Alias;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 客户基础信息
 * @author Arvin
 * @date 2017/12/9 12:14
 */
@Api(value = "客户基础信息",description = "客户基础信息")
@Alias(value = "CusBaseInfo")
public class CusBaseInfo {

    @ApiModelProperty(value = "客户ID",name = "cusId",dataType = "String",readOnly = true)
    private String cusId;
    @ApiModelProperty(value = "客户编码",name = "cusCode",dataType = "String",required = true,readOnly = true)
    private String cusCode;
    @ApiModelProperty(value = "客户名称",name = "cusName",dataType = "String",required = true,readOnly = true)
    private String cusName;
    @ApiModelProperty(value = "客户简称",name = "cusAbbr",dataType = "String")
    private String cusAbbr;
    @ApiModelProperty(value = "客户地址",name = "address",dataType = "String")
    private String address;
    @ApiModelProperty(value = "创建时间",name = "crtTime",dataType = "Date")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date crtTime;


    public CusBaseInfo() {
    }

    public CusBaseInfo(String cusId, String cusCode, String cusName, String cusAbbr, String address) {
        this.cusId = cusId;
        this.cusCode = cusCode;
        this.cusName = cusName;
        this.cusAbbr = cusAbbr;
        this.address = address;
    }

    public String getCusId() {
        return cusId;
    }

    public void setCusId(String cusId) {
        this.cusId = cusId;
    }

    public String getCusCode() {
        return cusCode;
    }

    public void setCusCode(String cusCode) {
        this.cusCode = cusCode;
    }

    public String getCusName() {
        return cusName;
    }

    public void setCusName(String cusName) {
        this.cusName = cusName;
    }

    public String getCusAbbr() {
        return cusAbbr;
    }

    public void setCusAbbr(String cusAbbr) {
        this.cusAbbr = cusAbbr;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getCrtTime() {
        return crtTime;
    }

    public void setCrtTime(Date crtTime) {
        this.crtTime = crtTime;
    }
}
